#ifndef PANELA_H
#define PANELA_H

#include "entity.h"

class Panela : public Entity
{
    Q_OBJECT
    Q_PROPERTY(QString descricao READ descricao WRITE setDescricao NOTIFY descricaoChanged)
    Q_PROPERTY(QString tara READ tara WRITE setTara NOTIFY taraChanged)
    Q_PROPERTY(QString codpanela READ codpanela WRITE setCodpanela NOTIFY codpanelaChanged)

//espelho das propriedades, da forma que o QML acessa
    Q_PROPERTY(qulonglong id_deppanela READ mId)
    Q_PROPERTY(QString panela READ descricao)
public:
    explicit Panela(QObject *parent = 0);

    QString descricao();
    void setDescricao(QString descricao);

    QString tara();
    void setTara(QString tara);

    QString codpanela();
    void setCodpanela(QString codpanela);

signals:
    void descricaoChanged();
    void taraChanged();
    void codpanelaChanged();

public slots:

private:
    QString m_descricao;
    QString m_tara;
    QString m_codpanela;
};

#endif // PANELA_H
